package com.example.transactionhintassistant.pojo.dto.ringtone;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

@Data
@Schema(description = "添加铃声对象")
public class AddRingtoneDto {
    /**
     * 铃声名称
     */
    @NotEmpty(message = "铃声名称不能为空")
    private String ringtoneName;

    /**
     * 铃声文件
     */
    @NotEmpty(message = "铃声文件不能为空")
    private String ringtoneFile;

    /**
     * 铃声时长
     */
    @Min(value = 2,message = "铃声时长不低于两秒")
    private Integer ringtoneDuration;
}
